package com.inspur.springcloudoauth.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class LoginController {

    @RequestMapping("/login")
    public String login() {
        //这边我们,默认是返到templates下的login.html
        return "login";
    }

    @RequestMapping("/success")
    @ResponseBody
    public String success() {
        //这边我们,默认是返到templates下的login.html
        return "登陆成功！";
    }

}
